package com.dm.cloud.images.common.po;

import com.dm.cloud.basepo.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
   * @author hcx
   * @type ImagesEndpoint.java
   * @desc ImagesEndpoint
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_IMAGES_ENDPOINT")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "ImagesEndpoint")
public class ImagesEndpoint extends BasePo {

      /** 节点名称 **/ 
      @Schema(description = "节点名称")
      @Column(name = "name")
      private String name;
      @Schema(description = "节点描述")
      @Column(name = "remark")
      private String remark;
      /** 节点状态:0不正常 1正常 **/ 
      @Schema(description = "节点状态:0不正常 1正常")
      @Column(name = "state")
      private Integer state;
      /** 节点IP **/ 
      @Schema(description = "节点IP")
      @Column(name = "host")
      private String host;
      /** 端口 **/ 
      @Schema(description = "节点ssh端口")
      @Column(name = "port")
      private Integer port;
      /** dockerApi端口 **/
      @Schema(description = "dockerApi端口")
      @Column(name = "docker_port")
      private Integer dockerPort;
      /** docker配置共享目录:nfs **/
      @Schema(description = "docker配置共享根目录:nfs")
      @Column(name = "docker_shard")
      private String dockerShard;

      @Schema(description = "ssh账号")
      @Column(name="uname")
      private String uname;

      @Schema(description = "ssh密码")
      @Column(name="upwd")
      private String upwd;

      /** null **/ 
      @Schema(description = "null")
      @Column(name = "latest_test_time")
      private java.util.Date latestTestTime;

}
